from rest_framework.generics import ListAPIView
from apps.recruit.serializers.CitySerializer import HotCityModelSerializer
from apps.recruit.models import City


# 热门城市
class HotCityAPIView(ListAPIView):
    serializer_class = HotCityModelSerializer
    queryset = City.objects.filter(ishot=1).all()



HotCity = HotCityAPIView.as_view()